﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>

<div class="ui-widget ui-widget-content" style="text-align:right">
<%
    if (Request.IsAuthenticated) {
%>
        Hola <b><%: Page.User.Identity.Name %></b>
        [ 
           
            <%: Html.ActionLink("Mis trabajos", "Results", "Search", new  {q=Page.User.Identity.Name }, null)%> |
            <%: Html.ActionLink("Ofertas realizadas","MyBids", "Bid") %> |
            <%: Html.ActionLink("Trabajos en proceso","InProcess","Job")%>|
            <%: Html.ActionLink("Historial de pagos","History","Pay")%>|
            <%: Html.ActionLink("Salir", "LogOff", "Account") %> 
        ]

<%
    }
    else {
%> 
        [<a id="lnkRegister">Registrarse</a>]
        [ <a id="lnkLogIn">Entrar</a> ]
<%
    }
%>

</div>
      <hr />
      <div id="menu">
                <ul class="menu">
                    <li><a href="<%:Url.Action("Index","Category") %>" class="parent"><span>Inicio</span></a> </li>
                    <li><a href="<%:Url.Action("Post","Job") %>"><span>Publica un empleo</span></a></li>
                    <li><a href="<%:Url.Action("About","Home") %>" class="parent"><span>Acerca de</span></a></li>
                    <li class="last"><a href="#"><span>Contactanos</span></a></li>
                </ul>
       </div>
      <hr/>
